-
-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sway window newstyles #1419
Sway window newstyles #1419
Conversation
Something I noticed, when switching the workspace layout (e.g. tabbed to splith), there is no immediate class change. Only after focus change. I'm not exactly sure how we can deal with that, because the only event I saw was for the keybinding. |
This seems that can be a solution to my issue here too #1349 |
I think your use case should even work before the patch, I'll add a comment in #1349. Also I'm wondering if it helps for easier to understand styling if we also add classes to the label, not just the whole bar. But I'm not sure why the patch doesn't do anything for you. Do you see any trace output from the module? |
As stated in the #1349, my issue was that I did not use the sway-window module. it works when I enable it. sorry for the noise :) |
no worries :) |
f842bb8
to
90f60ce
Compare
|
90f60ce
to
99eb7f0
Compare
|
Edit: Actually, found a way to fix it. I hope anyway. :P |
99eb7f0
to
8b9a827
Compare
793c990
to
1bc78e7
Compare
dd769a9
to
533e7dd
Compare
I think I've done all I can here. I'll test the latest for a few more days and then remove the draft flag. |
EDIT: With a combination of mobile try/catch blocks and gdb, I think I might have fixed it, need to observe some more. |
f95ead1
to
d999b5f
Compare
I guess it was temporary. |
ba68efd
to
5868f76
Compare
da8a100
to
0c642b7
Compare
0c642b7
to
b290420
Compare
Rebasing is adding more and more pain. :D I don't think I can guarantee the sanity of each individual commit post-rebasing any longer, which defeats the purpose of keeping them, so I decided to squash them. I'd like to get this out of the way, but unfortunately, it's difficult at the moment to find enough time to properly test this. |
b290420
to
f55ae23
Compare
f55ae23
to
7f06852
Compare
I use this patch especially for the .floating and it works as expected for me |
Oh noes. conflicts :( |
bbc3601
to
2091395
Compare
rebased, at first glance still seems to work. |
Thanks! Yeah everything I use still seems to work |
2091395
to
da23f27
Compare
da23f27
to
3f8006b
Compare
I've been using this for ages and have not encountered any issues, except one waybar crash in the context of replugging an external screen, where I was unable to replicate, and where I'm not even sure the reason was the module itself. That said, I'm a bit swamped at this time. It might be a few weeks before I'm able to look into any issues, should any be reported. |
Provides CSS classes empty, floating, tabbed, tiled, solo, stacked and app_id. Adds offscreen-css bool option (default false), only effective when "all-outputs" is true. This adds styles on outputs without focused node, according to its focused workspaces window situation. Adds an "offscreen-css-text" string option (default empty), only effective when "all-outputs" and "offscreen-style" are set. This is shown as a text on outputs without a focused node. Adds a "show-focused-workspace" bool option (default false) to indicate the workspace name if the whole workspace is focused when nodes are also present. If not set, empty text is shown, but css classes according to nodes in the workspace are still applied. Limitation: When the top level layout changes, there is no sway event so the module cannot react. Perhaps in the future recurring polling can be added to go around this limitation.
3f8006b
to
3285733
Compare
Can you also update the github wiki? |
Sure, done. While doing so I've noticed a small error I've added to the manpage, will add a pull request in a min. |
Probably a rebase error during development of Alexays#1419. The code block now removed was not supposed to be there anymore.
A more sophisticated implementation for issue 1399, following the suggestions from #1399 (comment)
Limitations:
Review questions:
Still to do:
make output/workspace filtering optionalEDIT: Don't think this makes sense.perhaps add "floating"/"tiled" styles depending on what the focused window isEDIT: leaving this for a future featureshow-focused-workspace still isn't correctTested with this style:
and this config (testing all combinations of all-output/offscreen-style, offscreen-text set or not set):